package demo2;

public class Test {
    public static void main(String[] args) {
        MySingleLinkedList mySingleLinkedList = new MySingleLinkedList();
        mySingleLinkedList.addFirst(5);
        mySingleLinkedList.addFirst(4);
        mySingleLinkedList.addFirst(5);
        mySingleLinkedList.addFirst(4);
        mySingleLinkedList.addFirst(5);
        mySingleLinkedList.display();
        mySingleLinkedList.removeAllKey(5);
        mySingleLinkedList.display();
    }
}
